<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改客户清单')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-crmCustomer-edit" th:object="${customer}">
            <input id="customerId" name="customerId" th:field="*{customerId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">部门名称：</label>
				<div class="col-sm-8">
					<input id="deptName" name="deptName" th:field="*{deptName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">员工工号：</label>
				<div class="col-sm-8">
					<input id="jobNumber" name="jobNumber" th:field="*{jobNumber}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">销售：</label>
				<div class="col-sm-8">
					<input id="userName" name="userName" th:field="*{userName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">行业：</label>
				<div class="col-sm-8">
					<input id="industry" name="industry" th:field="*{industry}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">销售区域：</label>
				<div class="col-sm-8">
					<input id="salesArea" name="salesArea" th:field="*{salesArea}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">集团名称：</label>
				<div class="col-sm-8">
					<input id="groupName" name="groupName" th:field="*{groupName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">公司名称：</label>
				<div class="col-sm-8">
					<input id="companyName" name="companyName" th:field="*{companyName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">联系人：</label>
				<div class="col-sm-8">
					<input id="contactUser" name="contactUser" th:field="*{contactUser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">联系电话：</label>
				<div class="col-sm-8">
					<input id="contactPhone" name="contactPhone" th:field="*{contactPhone}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否新客户：</label>
				<div class="col-sm-8">
					<select id="isNew" name="isNew" class="form-control m-b">
						<option value=""  th:field="*{isNew}">---请选择---</option>
						<option value="新客户" th:field="*{isNew}">新客户</option>
						<option value="老客户" th:field="*{isNew}">老客户</option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">是否已合作：</label>
				<div class="col-sm-8">
					<select name="isCooperated" class="form-control m-b">
						<option value=""  th:field="*{isCooperated}">---请选择---</option>
						<option value="未合作" th:field="*{isCooperated}">未合作</option>
						<option value="已合作" th:field="*{isCooperated}">已合作</option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">平台广告主名称：</label>
				<div class="col-sm-8">
					<input id="advertiserName" name="advertiserName" th:field="*{advertiserName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">广告主数量：</label>
				<div class="col-sm-8">
					<input id="advertiserNum" name="advertiserNum" th:field="*{advertiserNum}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">注册日期：</label>
				<div class="col-sm-8">
					<input id="registerDate" name="registerDate" th:field="*{registerDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">项目地：</label>
				<div class="col-sm-8">
					<input id="projectLocation" name="projectLocation" th:field="*{projectLocation}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">项目名称：</label>
				<div class="col-sm-8">
					<input id="projectName" name="projectName" th:field="*{projectName}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">内容：</label>
				<div class="col-sm-8">
					<input id="content" name="content" th:field="*{content}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消耗总额：</label>
				<div class="col-sm-8">
					<input id="totalConsume" name="totalConsume" th:field="*{totalConsume}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">合同总额：</label>
				<div class="col-sm-8">
					<input id="totalContract" name="totalContract" th:field="*{totalContract}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark" th:field="*{remark}" class="form-control" type="text"/>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "crm/customer";
		$("#form-crmCustomer-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-crmCustomer-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
